﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterEdit.master" AutoEventWireup="true" CodeFile="SafePublishUpdate.aspx.cs" Inherits="PraisePublish_SafePublishUpdate" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<script language="javascript">	
var  wName_2;  
function  openunit()  
{  
var num=Math.random();
var str = "" + document.getElementById('<%=txtCompanyID.ClientID %>').value + "";
wName_2=window.showModalDialog("../OpenWindows/open_jigou_list.aspx?tmp="+num+"&requeststr="+str+"&id="+str+"","window", "dialogWidth:650px;DialogHeight=600px;status:no;scroll=yes;help:no");                
var arr = wName_2.split("|");
for(var i=0;i<arr.length;i++)
{ 
document.getElementById('<%=txtCompanyID.ClientID %>').value=arr[0]; 
document.getElementById('<%=txtCompany.ClientID %>').value=arr[1]; 
}
}

function openunit1() {
    var num = Math.random();
    var str = "" + document.getElementById('<%=txtInCompanyID.ClientID %>').value + "";
    wName_2 = window.showModalDialog("../OpenWindows/open_jigou_list.aspx?tmp=" + num + "&requeststr=" + str + "&id=" + str + "", "window", "dialogWidth:650px;DialogHeight=600px;status:no;scroll=yes;help:no");
    var arr = wName_2.split("|");
    for (var i = 0; i < arr.length; i++) {
        document.getElementById('<%=txtInCompanyID.ClientID %>').value = arr[0];
        document.getElementById('<%=txtInCompany.ClientID %>').value = arr[1];
    }
}



function openunit2() {
    var num = Math.random();
    wName_2 = window.showModalDialog("../OpenWindows/open_YuanGong_HtManage.aspx?tmp=" + num + "&requeststr=&id=", "window", "dialogWidth:650px;DialogHeight=600px;status:no;scroll=yes;help:no");
    if (wName_2 != null && wName_2 != undefined) {
        var arr = wName_2.split("|");
        for (var i = 0; i < arr.length; i++) {
            //            document.getElementById("StaffId").value = arr[0];
            //            
            //            document.getElementById("XingBie").value = arr[3];
            //            document.getElementById("ShenFen").value = arr[4];
            //            document.getElementById("BuMenId").value = arr[5];
            //            document.getElementById("BuMen").value = arr[6];
            //            document.getElementById("GangWei").value = arr[7];
            //            document.getElementById("ZhiWu").value = arr[8];
            document.getElementById("ctl00_ContentPlaceHolder1_txtWorkernumber").value = arr[1];
            document.getElementById("ctl00_ContentPlaceHolder1_txtName").value = arr[2];
        }
    }
}

</script>


<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top">
    
    <table width="100%" height="3" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <table id="printshow1" width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="35">
          <table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="1" ></td>
                <td valign="top"> 
                <table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td width="3%"><img src="../images/top_3.gif" ></td>
                      <td width="81%" valign="bottom"><a href="../main_d.aspx" class="line_b" >工作台</a> >> 惩罚管理</td>
                      <td width="16%">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="100%" height="6" border="0" cellpadding="0" cellspacing="0" background="../images/lingbg.jpg">
                    <tr> 
                      <td></td>
                    </tr>
                  </table></td>
                <td width="1" ></td>
              </tr>
            </table>
           </td>
        </tr>
      </table>
      
       <table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="30">
            <div id="printshow2"> 
<%--          <table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="1" ></td>
                <td valign="top"> 
           <table align="center" background="../images/bg0003.gif" border="0" cellpadding="0"
                        cellspacing="0" width="100%">
                        <tr>
                            <td width=30% style="height: 26px">
                                <button id="btn" class="btn4off" 
                                    type="button">
                                    <font class="shadow_but">伤亡事故</font></button></td>
                              <td style="height: 26px" align="right" > &nbsp;</td>
                        </tr>
                    </table>
                </td>
                <td width="1" ></td>
              </tr>
            </table>--%>
            </div>
            <table align="center" id="tableprint" bgcolor="#999999" border="0" cellpadding="4" cellspacing="1"
                            width="100%">
                            <tr>
                                <td align="center" bgcolor="#efefef" class="cpx12hei" colspan="5" width="33%" style="height: 21px">
                                    <b> 惩罚信息</b></td>
                            </tr>
                            <tr>
                                <td align="right" bgcolor="#cccccc" class="cpx12hei" height="20" nowrap="nowrap"
                                    width="10%">
                                    惩罚类别：</td>
                                <td bgcolor="#efefef" class="cpx12hei" height="20"  width="40%">
                                    <asp:DropDownList ID="drpType" msg="惩罚类别"  datafield="Type" isnull="False"  fieldtype="nvarchar" runat="server" Width="70%">
                                    <asp:ListItem Text="--请选择--" Value=""></asp:ListItem>
                                    <asp:ListItem Text="工伤事故" Value="工伤事故"></asp:ListItem>
                                    <asp:ListItem Text="非工伤事故" Value="非工伤事故"></asp:ListItem>
                                    <asp:ListItem Text="三违" Value="三违"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td align="right" bgcolor="#cccccc" class="cpx12hei" height="20" nowrap="nowrap"
                                    width="10%">
                                    惩罚项目：</td>
                                <td bgcolor="#efefef" class="cpx12hei" height="20" width="40%">
                                    <asp:TextBox ID="txtProject" msg="惩罚项目" datafield="Project" isnull="false"  fieldtype="nvarchar" runat="server" Width="70%"></asp:TextBox>
                                </td>
                                 <td rowspan="5" bgcolor="#efefef" class="cpx12hei">
                                <img src="../HumanManage/StaffPhoto/<%=XinagPian %>" style="width: 145px; height: 156px" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right" bgcolor="#cccccc" class="cpx12hei" height="20" nowrap="nowrap"
                                    width="10%">
                                    事故单位：</td>
                                <td bgcolor="#efefef" class="cpx12hei" height="20"  width="40%">
                                    <asp:TextBox ID="txtCompany" msg="事故单位" datafield="Company" isnull="false"  fieldtype="nvarchar" runat="server" Width="70%"></asp:TextBox>
                                    <A href="javascript:void(0)"><img onclick="openunit();" id="img_danwei" runat="server" alt="" src="../images/FDJ.gif" border="0"></A> 
                                </td>
                                <td align="right" bgcolor="#cccccc" class="cpx12hei" height="20" nowrap="nowrap"
                                    width="10%">
                                    所属单位：</td>
                                <td bgcolor="#efefef" class="cpx12hei" height="20" width="40%">
                                    <asp:TextBox ID="txtInCompany" msg="所属单位" datafield="InCompany" isnull="false"  fieldtype="nvarchar" runat="server" Width="70%"></asp:TextBox>
                                     <A href="javascript:void(0)"><img onclick="openunit1();" id="img_danwei1" runat="server" alt="" src="../images/FDJ.gif" border="0"></A> 
                                </td>
                            </tr>
                            
                            
                            <tr>
                                <td align="right" bgcolor="#cccccc" class="cpx12hei" height="20" nowrap="nowrap"
                                    width="10%">
                                    职工编号：</td>
                                <td bgcolor="#efefef" class="cpx12hei" height="20"  width="40%">
                                    <asp:TextBox ID="txtWorkernumber" msg="职工编号" datafield="Workernumber" isnull="false"  fieldtype="nvarchar" runat="server" Width="70%"></asp:TextBox>
                                    <A href="javascript:void(0)"><IMG onclick="openunit2();" alt="" runat="server" id="imgSearch2" src="../images/FDJ.gif" border="0"></A>
                                </td>
                                 <td align="right" bgcolor="#cccccc" class="cpx12hei" height="20" nowrap="nowrap"
                                    width="10%">
                                    职工姓名：</td>
                                <td bgcolor="#efefef" class="cpx12hei" height="20" width="40%">
                                    <asp:TextBox ID="txtName" msg="职工姓名" datafield="Name" isnull="false"  fieldtype="nvarchar" runat="server" Width="70%"></asp:TextBox>
                                </td>
                                
                            </tr>
                            <tr>
                                <td align="right" bgcolor="#cccccc" class="cpx12hei" height="20" nowrap="nowrap"
                                    width="10%">
                                    处罚日期：</td>
                                <td bgcolor="#efefef" class="cpx12hei" height="20"  width="40%" colspan="3">
                                    <input msg="处罚日期" datafield="PunishTime" isnull="false"  fieldtype="String"  name="text" runat="server" type="text" class="Wdate" id="txtPunishTime" readonly="readonly" style="cursor:pointer; width:120px" onclick="WdatePicker({el:this.id,dateFmt:'yyyy-MM-dd', skin:'whyGreen'})" />
                                </td>
                                
                            </tr>
                             <tr>
                                <td align="right" bgcolor="#cccccc" class="cpx12hei" height="20" nowrap="nowrap"
                                    width="10%">
                                    行政处分：</td>
                                <td bgcolor="#efefef" class="cpx12hei" height="20"  width="40%">
                                    <asp:TextBox ID="txtXingZhengPunish" msg="行政处分" datafield="XingZhengPunish" isnull="true"  fieldtype="nvarchar" runat="server" Width="70%"></asp:TextBox>
                                </td>
                                <td align="right" bgcolor="#cccccc" class="cpx12hei" height="20" nowrap="nowrap"
                                    width="10%">
                                    党纪处分：</td>
                                <td bgcolor="#efefef" class="cpx12hei" height="20" width="40%">
                                    <asp:TextBox ID="txtDangJiPunish" msg="党纪处分" datafield="DangJiPunish" isnull="true"  fieldtype="nvarchar" runat="server" Width="70%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" bgcolor="#cccccc" class="cpx12hei" height="20" nowrap="nowrap"
                                    width="10%">
                                    经济处罚：</td>
                                <td bgcolor="#efefef" class="cpx12hei" height="20"  width="40%">
                                    <asp:TextBox ID="txtJingJiPunish" msg="经济处罚" datafield="JingJiPunish" isnull="true"  fieldtype="nvarchar" runat="server" Width="70%"></asp:TextBox>
                                </td>
                                <td align="right" bgcolor="#cccccc" class="cpx12hei" height="20" nowrap="nowrap"
                                    width="10%">
                                    处罚文号：</td>
                                <td bgcolor="#efefef" class="cpx12hei" height="20" colspan="2" width="40%">
                                    <asp:TextBox ID="txtCode" msg="处罚文号" datafield="Code" isnull="true"  fieldtype="nvarchar" runat="server" Width="70%"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                                <td align="right" bgcolor="#cccccc" class="cpx12hei" height="20" nowrap="nowrap"
                                    >
                                    处罚原因：</td>
                                <td bgcolor="#efefef" class="cpx12hei" height="20" colspan="4">
                                    <asp:TextBox ID="txtReason" runat="server"  msg="处罚原因" datafield="Reason" isnull="false"  fieldtype="nvarchar" Width="70%" Height="72px" TextMode="MultiLine"></asp:TextBox>
                              </td>
                              </tr>
                             <div id="printshow3">
                             
                             </div>
                            
                          
                        </table>
          </td>
        </tr>
      </table>
      
      <table id="printshow4" width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
       <tr>
                                <td align="center" bgcolor="#efefef" class="cpx12hei" colspan="5" height="26" width="33%">
                                    	<div align="center"><FONT face="宋体">
                                <asp:Button ID="btnSave" runat="server" Text="确 定" CssClass="button_blue"  
                                                OnClientClick="return CheckPage();" onclick="btnSave_Click"/>
                                &nbsp; &nbsp; &nbsp;
                                        <input type="button" id="btnPrint" runat="server" visible="false" onclick="printpage()" ishow="true" class="button_blue" value="打 印" />
                                &nbsp; &nbsp; &nbsp;
                                        <input type="button" id="btnReturn" runat="server" onserverclick="btnReturn_Click" ishow="true" class="button_blue" value="返 回" />
								</FONT>
							</div> </td>
                            </tr>
      </table>
      
      </td>
  </tr>
</table>
                    

<div style="display:none">
<asp:TextBox ID="txtAppID" runat="server" datafield="AppID" isnull="true"  fieldtype="nvarchar" Width="70%"></asp:TextBox>
<asp:TextBox ID="txtCompanyID" msg="事故单位" datafield="CompanyID" isnull="true"  fieldtype="nvarchar" runat="server" Width="70%"></asp:TextBox>
<asp:TextBox ID="txtInCompanyID" msg="事故单位" datafield="InCompanyID" isnull="true"  fieldtype="nvarchar" runat="server" Width="70%"></asp:TextBox>
</div>
</asp:Content>


